<%--
  Created by IntelliJ IDEA.
  User: 李雨昂
  Date: 2019/9/11
  Time: 11:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="tech.aistar.entity.User" %>
<html>
<head>
    <title>Title</title>
    <meta charset="UTF-8">
</head>
<body>
<%--使用动作和代码块来创建对象对的区别--%>

<%
    User u1 = new User();
    u1.setId(1);
    u1.setUsername("lya");
    u1.setPassword("123");

    pageContext.setAttribute("u1",u1);
    request.setAttribute("u1",u1);

%>
</body>
</html>
